#include "StdAfx.h"
#include <cfixcc.h>
class ChatClientCommonTests : public cfixcc::TestFixture
{
private:

public:
	void CChCSettingsTest()
	{
		CFIXCC_ASSERT(CChCSettings::Initialize());
		CChCSettings* pInstance = CChCSettings::Instance();
		CFIXCC_ASSERT(pInstance);
		CFIXCC_ASSERT(FALSE == pInstance->HostName().IsEmpty());
		CFIXCC_ASSERT(pInstance->Port() != 0);

		pInstance->HostName(_T("123456"));
		pInstance->Port(123456);
		CFIXCC_ASSERT(pInstance->HostName() == _T("123456"));
		CFIXCC_ASSERT(pInstance->Port() == 123456);
		CChCSettings::Uninitialize();
	}
};

CFIXCC_BEGIN_CLASS(ChatClientCommonTests)
	CFIXCC_METHOD(CChCSettingsTest)
CFIXCC_END_CLASS()

